package com.alili_tv.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户关注表
 * </p>
 *
 * @author baomidou
 * @since 2023-03-17
 */
@Getter
@Setter
@NoArgsConstructor
public class Follow implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 创建人-粉丝
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 作者id
     */
    private Long uploader;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public Follow(Long createUser, Long uploader) {
        this.createUser = createUser;
        this.uploader = uploader;
    }
}
